﻿namespace FactoryPattern
{
    internal class Program
    {
        static void Main(string[] args)
        {
            PizzaFactory factory = new SimplePizzaFactory();
            PizzaStore store = new PizzaStore(factory);

            Pizza pizza1 = store.OrderPizza("cheese");
            Console.WriteLine($"Ordered a {pizza1.Name}\n");

            Pizza pizza2 = store.OrderPizza("pepperoni");
            Console.WriteLine($"Ordered a {pizza2.Name}\n");

            Console.Read();
        }
    }
}
